<template>
    <div>
        <el-button plain size="small" type="primary" icon="el-icon-plus" @click="add" v-if="$auth.checkMenuPermissions('system:user:add')">新增用户</el-button>
        <el-button plain size="small" type="danger" icon="el-icon-delete" @click="del" v-if="$auth.checkMenuPermissions('system:user:delete')">删除用户</el-button>
        <el-button plain size="small" type="warning" icon="el-icon-download" @click="exp" v-if="$auth.checkMenuPermissions('system:user:export')">导出用户</el-button>
    </div>
</template>
  
<script>
export default {
    methods: {
        add() {
            this.$emit('add')
        },
        del(){
            this.$emit('del')
        },
        exp(){
            this.$emit('exp')
        }
    }
};
</script>
  
<style scoped lang="scss">
div {
    margin-left: 30px;
}
</style>
  